﻿using PMS.Core.Configuration.CommonEnumConfigs;
using PMS.Web.Framework.Models;
using PMS.Web.Framework.Mvc.ModelBinding;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace PMS.Web.Models.Customers
{
    public partial class RegisterModel : BaseEntityModel
    {
        public bool EmailEnabled { get; set; }

        [DataType(DataType.EmailAddress)]
        [DisplayName("Email")]
        [NoTrim]
        public string Email { get; set; }

        public bool LoginnameEnabled { get; set; }

        [DisplayName("登录名")]
        [NoTrim]
        public string Loginname { get; set; }

        public bool MobileEnabled { get; set; }

        [DisplayName("手机号")]
        public string Mobile { get; set; }

        public bool NicknameEnabled { get; set; }
        [DisplayName("昵称")]
        public string Nickname { get; set; }

        public bool PasswordEnabled { get; set; }

        [DataType(DataType.Password)]
        [NoTrim]
        [DisplayName("账号密码")]
        public string Password { get; set; }

        [DataType(DataType.Password)]
        [NoTrim]
        [DisplayName("密码确认")]
        public string ConfirmPassword { get; set; }

        public PasswordStrongLevel PasswordStrongLevel { get; set; }
    }
}
